package com.qdxht.dispenser.base;


import com.qdxht.dispenser.BuildConfig;
import com.qdxht.dispenser.utils.UserUtil;

public class AppConfig {
    /**
     * 当前是否为调试模式
     */
    public static boolean isDebug() {
        return BuildConfig.DEBUG;
    }

    /**
     * 当前是否要开启日志打印功能
     */
    public static boolean isLogEnable() {
        return BuildConfig.LOG_ENABLE;
    }

    /**
     * 获取当前应用的包名
     */
    public static String getPackageName() {
        return BuildConfig.APPLICATION_ID;
    }
    /**
     * 获取当前应用的包名
     */
    public static String getFileProvider() {
        return BuildConfig.APPLICATION_ID + ".fileprovider";
    }

    /**
     * 获取当前应用的版本名
     */
    public static String getVersionName() {
        return BuildConfig.VERSION_NAME;
    }

    /**
     * 获取当前应用的版本码
     */
    public static int getVersionCode() {
        return BuildConfig.VERSION_CODE;
    }

    /**
     * 获取 Bugly Id
     */
    public static String getBuglyId() {
        return "4309f819ae";
    }

    /**
     * 获取服务器主机地址
     */
    public static String getHostIp() {
        return BuildConfig.HOST_IP;
    }

    /**
     * 获取程序APPID
     */
    public static String getAppId() {
        return "e89ec5c6e30a11ecbf1100155d6ed345";
    }

    public static final int API_RETRY_COUNT = 0;//API请求失败重试次数
    public static final int API_TIMEOUT = 30000;//API请求超时时间

    public static final int WEBVIEW_TIMEOUT = 60;//webview加载超时，单位秒
    public static final int VIEWPAGER_FLIP_SPEED = 200;//unit ms ,the duration of viewpager flip animation.

    public static final int PAGE_START_INDEX = 1;//分页开始index序号
    public static final int NUMS_PER_PAGE = 10;//每页数量

    public static final int SMS_REGET_NEED_TIME = 60;//短信发送倒计时时间，单位s

    public static final int IMAGE_COMPRESS_QUALITY = 70;//上传图片压缩质量百分比

//    public static final String FILE_PROVIDER_NAME = BuildConfig.APPLICATION_ID+".fileprovider";

//    public static final String BUGLY_APPID_DEBUG = "3af7ac45ee";
//    public static final String BUGLY_APPID_RELEASE = "3af7ac45ee";

    public static final String BUGLY_APPID_RELEASE = "3af7ac45ee";
}
